import Vue from 'vue'
import Router from 'vue-router'
import StartPage from '@/components/aboutUser/startpage.vue'
import loginByTel from '@/components/aboutUser/login/loginbytel.vue'
import register from '@/components/aboutUser/register/register.vue'
import loginByUser from '@/components/aboutUser/login/loginbyuser.vue'
import findPsw from '@/components/aboutUser/findpassword.vue'
import homePage from '@/components/homepage.vue'
import docsList from '@/components/docslist/docslist.vue'
import videoList from '@/components/docslist/videolist.vue'
import networkError from '@/components/network/networkerror.vue'
import musicPreview from '@/components/preview/musicpreview.vue'
import imgPreview from '@/components/preview/imgpreview.vue'
import videoPreview from '@/components/preview/videopreview.vue'
import folderList from '@/components/docslist/folderlist.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'startPage',
      component: StartPage
    },
    {
      path: '/login/tel',
      name: 'loginByTel',
      component: loginByTel
    },
    {
      path: '/register',
      name: 'register',
      component: register
    },
    {
      path: '/login/user',
      name: 'loginByUser',
      component: loginByUser
    },
    {
      path: '/login/user/findpsw',
      name: 'findPassword',
      component: findPsw
    },
    {
      path: '/homepage',
      name: 'homePage',
      component: homePage
    },
    {
      path: '/docs_list/video',
      name: 'videoList',
      component: videoList
    },
    {
      path: '/docs_list/:category',
      name: 'docsList',
      component: docsList
    },
    {
      path: '/networkerror',
      name: 'networkError',
      component: networkError
    },
    {
      path: '/docs_list/music/preview',
      name: 'musicPreview',
      component: musicPreview
    },
    {
      path: '/docs_list/picture/preview',
      name: 'imgPreview',
      component: imgPreview
    },
    {
      path: '/docs_list/video/preview',
      name: 'videoPreview',
      component: videoPreview
    },
    {
      path: '/folderlist',
      name: 'folderList',
      component: folderList
    }
  ]
})
